/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 12/23/2010                        
            */

using System;
using System.Collections.Generic;
using System.Text;
namespace BusinessObject
{
    /// <summary>
    /// Define PhieuNhapHangResult object. This object used to contain data that returned from data layer.
    /// </summary>
    public class PhieuNhapHangResult
    {
        #region fields
        private Int64 maPhieuNhapHang;
        private string nguoiNhap;
        private int maKho;
        private string tenKho;
        private DateTime ngayNhap;
        private double thanhTien;
        #endregion fields

        #region properties
        /// <summary>
        /// Define MaPhieuNhapHang Property.
        /// </summary>
        public Int64 MaPhieuNhapHang
        {
            get { return this.maPhieuNhapHang; }
            set { this.maPhieuNhapHang = value; }
        }
        /// <summary>
        /// Define NguoiNhap Property.
        /// </summary>
        public string NguoiNhap
        {
            get { return this.nguoiNhap; }
            set { this.nguoiNhap = value; }
        }
        /// <summary>
        /// Define MaKho Property.
        /// </summary>
        public int MaKho
        {
            get { return this.maKho; }
            set { this.maKho = value; }
        }
        /// <summary>
        /// Define TenKho Property.
        /// </summary>
        public string TenKho
        {
            get { return this.tenKho; }
            set { this.tenKho = value; }
        }

        /// <summary>
        /// Define ThanhTien Property.
        /// </summary>
        public double ThanhTien
        {
            get { return this.thanhTien; }
            set { this.thanhTien = value; }
        }

        /// <summary>
        /// Define NgayNhap Property.
        /// </summary>
        public DateTime NgayNhap
        {
            get { return this.ngayNhap; }
            set { this.ngayNhap = value; }
        }
        #endregion properties

        #region constructor
        /// <summary>
        /// Define default constructor for PhieuNhapHangResultResult Object.
        /// </summary>
        public PhieuNhapHangResult()
        {
            this.maPhieuNhapHang = Int64.MinValue;
            this.nguoiNhap = string.Empty;
            this.maKho = int.MinValue;
            this.ngayNhap = DateTime.MinValue;
            this.tenKho = string.Empty;
            this.thanhTien = double.MinValue;
            this.isCommit = true;
        }
        /// <summary>
        /// Define constructor for PhieuNhapHangResultResult Object.
        /// </summary>
        public PhieuNhapHangResult(int maPhieuNhapHang,
                    string nguoiNhap,
                    int maKho,
                    DateTime ngayNhap)
        {
            this.maPhieuNhapHang = maPhieuNhapHang;
            this.nguoiNhap = nguoiNhap;
            this.maKho = maKho;
            this.ngayNhap = ngayNhap;
        }
        private Boolean isCommit;
        public Boolean IsCommit
        {
            get { return this.isCommit; }
            set { this.isCommit = value; }
        }
        #endregion constructor
    }
}